<!DOCTYPE html>
<!--[if IE 8]>			<html class="ie ie8"> <![endif]-->
<!--[if IE 9]>			<html class="ie ie9"> <![endif]-->
<!--[if gt IE 9]><!-->	<html> <!--<![endif]-->
<head>
	<meta charset="utf-8">
	<title>注册 {$site_name} </title>
	<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
	<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
	{include file="public:head_user" /}
</head>
<script src="{$yf_theme_pc_path}public/js/custom.js"></script>
<body class="body-white">
<div class="wrap">
	 <div id="main-cmf">
		<div class="content">
			<div class="container">
				<div class="row">
					<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 col-lg-offset-4 col-md-offset-4 col-sm-offset-3">
						<h2 class="text-center">用户注册</h2>
						<div class="widget tabs">
							<div id="horizontal-tabs">
								<div class="contents">
									<div class="tabscontent" id="content1" style="display: block;">
										<form class="form-light verify-ajax-form" id="reg" action="{:url('home/Register/runregister')}" method="post">
                
                                            <div>
												<input type="mobile" name="mobile" id="mobile"  placeholder="* 手机号码" class="form-control" required>
											</div>
											<div>&nbsp;</div>
                                            <div class="row">
												<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5"><input class="form-control" required name="mobilecode" id="mobilecode" type="text" placeholder="* 短信验证码"></div>
                                                <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1"><button class="btn btn-primary " type="button" id="getcode">获取验证码</button></div>
											</div>
											<div>&nbsp;</div>
                                            <div>
												<input type="text" maxlength="16" name="member_list_username" placeholder="* 用户名" class="form-control" required>
											</div>
											<div>&nbsp;</div>
											<div>
												<input type="email" maxlength="32" name="member_list_email" placeholder="邮箱" class="form-control" required>
											</div>
											<div>&nbsp;</div>
											<div>
												<input type="password" name="password" placeholder="密码" class="form-control" required>
											</div>
											<div>&nbsp;</div>
											<div>
												<input type="password" name="repassword" placeholder="重复密码" class="form-control" required>
											</div>
											<!--<div>&nbsp;</div>
											<div class="row">
												<div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
													<input type="text" class="form-control" placeholder="" id="verify" style="height:40px;" name="verify" required>
												</div>
												<div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
													<img class="verify_img" id="verify_img" src="{:url('home/Register/verify')}" onClick="this.src='{:url('home/Register/verify')}'+'?'+Math.random()" style="cursor: pointer;width:100%;border: 1px solid #d5d5d5;height:40px;" title="点击获取">
												</div>
											</div>-->
                                            
                                            <div>&nbsp;</div>
                                            {empty name="procode"}
											<div>
												<input type="text" name="procode" placeholder="推荐码,没有可不填。" value="{$procode}" class="form-control" >
											</div>
											<div>&nbsp;</div>
                                            {/empty}
											<div>
												<button class="btn btn-primary col-lg-12 col-md-12 col-sm-12 col-xs-12" type="submit"  data-wait="1500">确定注册</button></div>

											<div style="text-align: center;">
												<p>
													已有账号? <a href="{:url('home/Login/index')}">点击此处登录</a>
												</p>
											</div>
										</form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
</div>
{include file="public:scripts"/}
{include file="public:footer"/}
<script src="{$yf_theme_pc_path}public/js/jquery.parallax.js"></script>
<script src="{$yf_theme_pc_path}public/js/modernizr-2.6.2.min.js"></script>
<script src="{$yf_theme_pc_path}public/js/revolution-slider/js/jquery.themepunch.revolution.min.js"></script>
<script src="{$yf_theme_pc_path}public/js/jquery.nivo.slider.pack.js"></script>
<script src="{$yf_theme_pc_path}public/js/jquery.prettyPhoto.js"></script>
<script src="{$yf_theme_pc_path}public/js/superfish.js"></script>
<script src="{$yf_theme_pc_path}public/js/circularnav.js"></script>
<script src="{$yf_theme_pc_path}public/js/jflickrfeed.js"></script>
<script src="{$yf_theme_pc_path}public/js/imagesloaded.pkgd.min.js"></script>
<script src="{$yf_theme_pc_path}public/js/waypoints.min.js"></script>
<script src="{$yf_theme_pc_path}public/js/spectrum.js"></script>
<script src="{$yf_theme_pc_path}public/js/tytabs.js"></script>
<script src="{$yf_theme_pc_path}public/js/custom.js"></script>
<script src="{$yf_theme_pc_path}public/js/portfolio.js"></script> 
<script src="{$yf_theme_pc_path}public/js/qrcode.min.js"></script>
<script src="{$yf_theme_pc_path}public/js/jquery.sticky.js"></script>
<script src="{$yf_theme_pc_path}public/js/jquery.cookie.js"></script>
<script src="__PUBLIC__/others/jquery.form.js"></script>
<script src="__PUBLIC__/layer/layer_{$lang}.js"></script>
<script>
$(function(){

	$("#getcode").click(function(){	
	    var o = this,op  = $(this);
		var mobile = $("#mobile").val();						 
		if( mobile==""){
			layer.alert("请输入手机号码！");
			return false;
		}
		if(!checkStr(mobile,"mobile")){
			layer.alert("请输入正确的手机号码！");
			return false;
		}
		
		$.post("{:url("index/mobilecode")}",{mobile:mobile},function(res){
			if(res.err == 1){
			   //daojishi(this,'over');
			   layer.alert(res.msg);
			}else{
			   daojishi(this);	
			}
		});
		
		 
		
	});
	
	checkdaojishi(document.getElementById("getcode"));	
	
});
</script>
</body>
</html>